{% set pypi_name = 'kuryr-tempest-plugin' %}
{% set upstream_version = upstream_version('0.7.0') %}
{% set rpm_release = '1' %}
{% set source = url_pypi() %}

Name:          {{ py2name(py_versions='py3') }}
Version:       {{ py2rpmversion() }}
Release:       {{ py2rpmrelease() }}
Summary:       Tempest plugin for the kuryr project
License:       {{ license('Apache-2.0') }}
Group:         Development/Languages/Python
URL:           https://docs.openstack.org/{{ pypi_name }}
Source0:       {{ source }}
BuildRequires: openstack-macros
BuildRequires: {{ py3('pbr') }}
Requires:      {{ py2pkg('tempest') }}
Requires:      {{ py3('kubernetes') }}
Requires:      {{ py3('oslotest') }}
Requires:      {{ py3('pbr') }}
Requires:      {{ py3('six') }}
Requires:      {{ py3('testrepository') }}
Requires:      {{ py3('testtools') }}
BuildArch:     noarch

%description
This package contains Tempest tests to cover the kuryr-kubernetes project.
Additionally it provides a plugin to automatically load these tests into Tempest.

%prep
%autosetup -p1 -n {{ pypi_name }}-{{ upstream_version }}
%py_req_cleanup

%build
%{py3_build}

%install
%{py3_install}

%files
%license LICENSE
%doc README.rst
%{python3_sitelib}/kuryr_tempest_plugin
%{python3_sitelib}/*.egg-info

%changelog
